package clientGUI.userPanels;

import javax.swing.JPanel;

import clientGUI.CollegeClientGUI;
import clientserver.Client;
import clientGUI.defines;

/*
 * This is basic panel class in the client  all panels   must extend from this class
 *  Panels with controllers must overwrite  setClient and GetClient methods 
 */
public  class UPanel  extends JPanel {

	protected Client client;
	protected  CollegeClientGUI    myframe;
	
	
	
	public Client getClient() {
		// TODO Auto-generated method stub
		return client;
	}
	
	public void setClient(Client cl) {

			client=cl;

	}

	
	public  void SetFrame( CollegeClientGUI fr)
	{
		myframe=fr;
	}
	
public UPanel()
{
	setBackground(defines.clientbackground);
}
}

 

